package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    PageResult<Role> findPage(QueryPageBean queryPageBean);

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    Role findById(Integer id);

    void deleteById(int id);

    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);


    List<Role> finAll();

    List<Integer> findRoleIdsByUserId(int id);

}
